@props(['name','module', 'list'])
<div module class="index_talent">
    <div class="wp">
        <div class="index_talent_tit">
            <h4>{{ $name }}</h4>
        </div>
        <div class="list">
            @foreach ($module->categorys as $ct)
            <div class="item">
                <div class="con">
                    <div class="tit">
                        <h4>{{$ct['title']}}</h4>
                        <a href="/content/{{ $module->id }}?category_id={{$ct->id}}">{{__('messages.more')}}+</a>
                    </div>
                    <div class="kuai">
                        @if ($ct->items)
                        @if (!empty($ct->items[0]) && !empty($ct->items[0]->image))
                        <a href="/article/{{$ct->items[0]->id}}?type={{$module->id}}">
                            <div class="pic" style="background-image: url('{{$ct->items[0]->image}}');"></div>
                        </a>
                        @endif
                        <div class="ul">
                            @foreach ($ct->items as $d)
                            <a href="/article/{{$d->id}}?type={{$module->id}}">
                                <p><em>●</em>{{$d->title}}</p>
                            </a>
                            @endforeach
                        </div>
                        @endif
                    </div>
                </div>
            </div>
            @endforeach
            <div class="c"></div>
        </div>
        <div class="index_more">
            <a href="/content/{{$module->id}}">
                <span>{{__('messages.more')}}</span>
                <i class="iconfont icon-icon_fanye_fanye-copy"></i>
            </a>
        </div>
    </div>
</div>
<!-- end -->
